import request from '@/utils/request'

export function getMessageList(query) {
  return request({
    url: '/messenger/message/getList',
    method: 'post',
    data: query
  })
}

export function getMessageDetail(data) {
  return request({
    url: '/messenger/message/getDetail',
    method: 'post',
    data: data
  })
}

export function removeMessageByID(data) {
  return request({
    url: '/messenger/message/delete',
    method: 'post',
    data: data
  })
}
export function changeMessageStatusByID(data) {
  return request({
    url: '/messenger/message/change-status',
    method: 'post',
    data: data
  })
}

export function createArticle(data) {
  return request({
    url: '/messenger/message/save',
    method: 'post',
    data
  })
}

export function updateArticle(data) {
  return request({
    url: '/messenger/message/save',
    method: 'post',
    data
  })
}
